package com.xasz.service;

import com.xasz.entity.Weight;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cai
 * @since 2022-08-03
 */
public interface IWeightService extends IService<Weight> {

    /**
     * 设置权重
     * 传入评分项集合,以及对应的权重集合
     */
    void setWeight(Integer activityId,List<Weight> weightList,Integer Uid);

    /**
     * 删除权重
     * scoreX:第几个权重
     */
    void detectWeight(Weight weight,Integer Uid);

    /**
     * 查询权重设置信息
     */
    List<Weight> getWeight(Integer activityId);

    /**
     * 修改权重信息
     */
    void upDateWeight(Weight weight,Integer Uid);
}
